<template>
        <view class="page">
            <view class="flex benben-position-layout flex flex-wrap align-center xuanzefabufangyuan_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
                <view class='flex flex-wrap align-center justify-between flex-sub xuanzefabufangyuan_fd0_0'>
                    <view class='flex flex-wrap align-center xuanzefabufangyuan_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
                        <text class='fu-iconfont2  xuanzefabufangyuan_fd0_0_c0_c0'>&#xE794;</text>
                    </view>
                    <view class='flex flex-wrap align-stretch justify-center'>
                        <text class='xuanzefabufangyuan_fd0_0_c1_c0'>选择房源</text>
                    </view>
                    <view class='flex flex-wrap align-center justify-end xuanzefabufangyuan_fd0_0_c0'>
                    </view>
                </view>

            </view>
            <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
            <!---flex布局flex布局开始-->
            <view class="flex benben-flex-layout flex-wrap align-center xuanzefabufangyuan_flex_1">
                <view class='flex flex-wrap align-center xuanzefabufangyuan_fd1_0' v-for="(item,index) in houseList" :key="index">
                    <view class='flex flex-wrap align-center xuanzefabufangyuan_fd1_0_c0' @tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/mine/rentalPropertydetails/rentalPropertydetails?aid=${item.aid}`">
                        <view class='flex flex-wrap align-center xuanzefabufangyuan_fd1_0_c0_c0'>
                            <view class='flex flex-wrap align-center self-center justify-center xuanzefabufangyuan_fd1_0_c0_c0_c0'>
                                <text class='xuanzefabufangyuan_fd1_0_c0_c0_c0_c0'>{{item.housecate_name?item.housecate_name:'住宅'}}</text>
                            </view>
                            <image class='xuanzefabufangyuan_fd1_0_c0_c0_c1' mode="aspectFit" :src='item.cover'></image>
                            <view class='flex flex-wrap align-center self-center justify-center xuanzefabufangyuan_fd1_0_c0_c0_c2'>
                                <text class='xuanzefabufangyuan_fd1_0_c0_c0_c2_c0'>租赁中</text>
                            </view>
                        </view>
                        <view class='flex flex-direction align-baseline justify-between flex-sub xuanzefabufangyuan_fd1_0_c0_c1'>
                            <view class='flex flex-direction flex-wrap align-stretch'>
                                <text class='xuanzefabufangyuan_fd1_0_c0_c1_c0_c0'>{{item.address}}</text>
                                <text class='xuanzefabufangyuan_fd1_0_c0_c1_c0_c1'>厦门 沧海区 丨2室1厅1卫丨78㎡</text>
                            </view>
                            <view class='flex flex-wrap align-center xuanzefabufangyuan_fd1_0_c0_c1_c1'>
                                <text class='xuanzefabufangyuan_fd1_0_c0_c1_c1_c0'>25000</text>
                                <text class='xuanzefabufangyuan_fd1_0_c0_c1_c1_c1'>元/月</text>
                            </view>
                        </view>
                    </view>
                    <view class='flex flex-wrap align-center justify-between xuanzefabufangyuan_fd1_0_c1'>
                        <view class='flex flex-wrap align-center xuanzefabufangyuan_fd1_0_c1_c0'>
                            <text class='xuanzefabufangyuan_fd1_0_c1_c0_c0'>租房倒计时：</text>
                            <text class='xuanzefabufangyuan_fd1_0_c1_c0_c1'>315天</text>
                        </view>
                        <view class='flex flex-wrap align-center self-center justify-center xuanzefabufangyuan_fd1_0_c1_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/grzx/rentalRegistration/rentalRegistration?housecate_name=${item.housecate_name}&address=${item.address}`" v-if="type == '1'">
                            <text class='xuanzefabufangyuan_fd1_0_c0_c0_c2_c0'>居住登记</text>
                        </view>
						<view class='flex flex-wrap align-center self-center justify-center xuanzefabufangyuan_fd1_0_c1_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/mine/fireInformation/fireInformation?aid=${item.aid}&type=2`" v-if="type == '2'">
						    <text class='xuanzefabufangyuan_fd1_0_c0_c0_c2_c0'>消防登记</text>
						</view>
						<view class='flex flex-wrap align-center self-center justify-center xuanzefabufangyuan_fd1_0_c1_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/mine/fireInformation/fireInformation?aid=${item.aid}&type=3`" v-if="type == '3'">
						    <text class='xuanzefabufangyuan_fd1_0_c0_c0_c2_c0'>卫生登记</text>
						</view>
						<view class='flex flex-wrap align-center self-center justify-center xuanzefabufangyuan_fd1_0_c1_c1' v-if="type == '4'">
						    <text class='xuanzefabufangyuan_fd1_0_c0_c0_c2_c0'>转让</text>
						</view>
                    </view>
                </view>
            </view>

            <!---flex布局flex布局结束-->


        </view>
</template>
<script>
    export default {
        components: {},


        data() {
            return {
				type:'',
				houseList:[],
			};
        },
        computed: {

        },
        watch: {},
        onLoad(options) {
			let {
				type
			} = options
			if(type)this.type = type
			this.getList()
        },
        onUnload() {

        },
        onReady() {

        },
        onShow() {

        },
        onHide() {

        },
        onResize() {

        },
        onPullDownRefresh() {

        },
        onReachBottom(e) {

        },
        onPageScroll(e) {

        },
        methods: {
			getList(){
				uni.showLoading({
					title:'加载中'
				})
				this.$api.post('/m6752/66f9076be8e2e').then(res=>{
					uni.hideLoading()
					if(res.data.code == 1){
						this.houseList = res.data.data.data
					}else{
						this.$message.info(res.data.msg)
					}
				})
			},
        }
    };
</script>
<style lang="scss" scoped>
    .page {
        width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - var(--window-bottom));
        background: #F8F8F8;
        background-size: 100% auto;
    }

    .xuanzefabufangyuan_flex_0 {
        background: #fff;
        width: 750rpx;
        height: 88rpx;
        overflow: hidden;
        z-index: 10;
        top: 0rpx;
        background-size: 100% auto !important;
    }

    .xuanzefabufangyuan_fd0_0_c1_c0 {
        font-size: 36rpx;
        font-weight: 500;
        color: #333333;
        line-height: 50rpx;
    }

    .xuanzefabufangyuan_fd0_0_c0_c0 {
        font-size: 36rpx;
        color: #333;
    }

    .xuanzefabufangyuan_fd0_0_c0 {
        width: 120rpx;
    }

    .xuanzefabufangyuan_fd0_0 {
        padding: 0rpx 32rpx 0rpx 32rpx;
    }

    .xuanzefabufangyuan_flex_1 {
        padding: 0rpx 24rpx 0rpx 24rpx;
    }

    .xuanzefabufangyuan_fd1_0_c1_c1 {
        background: #FC5F80;
        border-radius: 30rpx 30rpx 30rpx 30rpx;
        width: 164rpx;
        height: 60rpx;
    }

    .xuanzefabufangyuan_fd1_0_c1_c0_c1 {
        color: rgba(51, 51, 51, 1);
    }

    .xuanzefabufangyuan_fd1_0_c1_c0_c0 {
        color: rgba(153, 153, 153, 1);
    }

    .xuanzefabufangyuan_fd1_0_c1_c0 {
        font-size: 24rpx;
        font-weight: 400;
    }

    .xuanzefabufangyuan_fd1_0_c1 {
        border-top: 1px solid #eee;
        width: 100%;
        margin: 32rpx 0rpx 0rpx 0rpx;
        padding: 24rpx 0rpx 0rpx 0rpx;
    }

    .xuanzefabufangyuan_fd1_0_c0_c1_c1_c1 {
        font-size: 24rpx;
    }

    .xuanzefabufangyuan_fd1_0_c0_c1_c1_c0 {
        font-size: 32rpx;
    }

    .xuanzefabufangyuan_fd1_0_c0_c1_c1 {
        color: rgba(234, 55, 39, 1);
        font-weight: 600;
    }

    .xuanzefabufangyuan_fd1_0_c0_c1_c0_c1 {
        color: #666666;
        font-size: 22rpx;
        font-weight: 400;
        margin: 16rpx 0rpx 0rpx 0rpx;
    }

    .xuanzefabufangyuan_fd1_0_c0_c1_c0_c0 {
        color: #333333;
        font-size: 32rpx;
        font-weight: 500;
    }

    .xuanzefabufangyuan_fd1_0_c0_c1 {
        height: 192rpx;
    }

    .xuanzefabufangyuan_fd1_0_c0_c0_c2_c0 {
        color: #FFFFFF;
        font-size: 24rpx;
        font-weight: 400;
    }

    .xuanzefabufangyuan_fd1_0_c0_c0_c2 {
        background: rgba(0, 0, 0, 0.45);
        width: 100%;
        border-radius: 16rpx;
        height: 48rpx;
        position: absolute;
        bottom: 0rpx;
        left: 0rpx;
        right: 0rpx;
        z-index: 2;
    }

    .xuanzefabufangyuan_fd1_0_c0_c0_c1 {
        width: 100%;
        height: 100%;
        border-radius: 0rpx 0rpx 0rpx 0rpx;
    }

    .xuanzefabufangyuan_fd1_0_c0_c0_c0_c0 {
        color: #FFFFFF;
        font-size: 22rpx;
        font-weight: 400;
    }

    .xuanzefabufangyuan_fd1_0_c0_c0_c0 {
        background: #2E66FF;
        border-radius: 16rpx 0rpx 16rpx 0rpx;
        width: 86rpx;
        height: 36rpx;
        position: absolute;
        left: 0rpx;
        top: 0rpx;
        z-index: 2;
    }

    .xuanzefabufangyuan_fd1_0_c0_c0 {
        width: 216rpx;
        height: 192rpx;
        border-radius: 16rpx;
        position: relative;
        margin: 0rpx 20rpx 0rpx 0rpx;
    }

    .xuanzefabufangyuan_fd1_0_c0 {
        width: 100%;
    }

    .xuanzefabufangyuan_fd1_0 {
        background: #FFFFFF;
        width: 100%;
        margin: 24rpx 0rpx 0rpx 0rpx;
        border-radius: 16rpx 16rpx 16rpx 16rpx;
        padding: 24rpx 24rpx 32rpx 24rpx;
    }
</style>